package model

import "gorm.io/gorm"

type AgentRole struct {
	gorm.Model
	Name     string `gorm:"type:varchar(32);not null;comment:智能体角色名称;index:idx_name_status" json:"name"`
	Icon     string `gorm:"type:varchar(255);comment:图标URL" json:"icon"`
	Describe string `gorm:"type:varchar(255);not null;comment:智能体角色描述" json:"describe"`
	CueWord  string `gorm:"column:cue_word;type:text;not null;comment:提示词" json:"cueWord"`
	Type     int    `gorm:"column:type;type:tinyint(1);not null;comment:类型" json:"type"`
	Status   int    `gorm:"type:tinyint(1);not null;default:1;comment:状态 1:正常 0:禁用;index:idx_name_status" json:"status"`
}

func (AgentRole) TableName() string {
	return "t_agent_role"
}
